// *******************
// 搜索页面
// *******************
function SearchCtrl($scope, $stateParams, TodoListService) {
$scope.searchKey = "";

// "搜索任务"Event
$scope.searchToDo = function(searchKey) {
    if (searchKey != undefined && searchKey != "")　{
        TodoListService.findByTitle(searchKey).then(function(todolists) {
            $scope.todolists = todolists;
        });
    }
}
}

angular.module('helper.controllers',[]).controller('SearchCtrl', SearchCtrl)